Extending ConsoleApplicationBase to load external Assemblies#6
Open
RoDoerIng wants to merge 13 commits intoTypecastException:masterfrom
Open
Extending ConsoleApplicationBase to load external Assemblies#6RoDoerIng wants to merge 13 commits intoTypecastException:masterfrom
RoDoerIng wants to merge 13 commits intoTypecastException:masterfrom
Conversation
refactored console app, _commandLibraries in static class now
TODO: Commands can only be invoked once, don't know reason yet
…re the owning assembly of each command class for future extensibility in regards to external assemblies
…ename added TestLib project to solution storing the owning assembly of each command class is working
removed adding external assembly on initialisation of CommandLibrary
… to make Program class leaner
added App.config file to store app settings extended CommandLibrary initialize function with auto loading external assemblies specified in config file
# Conflicts: # src/consoleApp/ConsoleApplicationBase/ConsoleApplicationBase/CommandClassInfo.cs # src/consoleApp/ConsoleApplicationBase/ConsoleApplicationBase/CommandHandler.cs # src/consoleApp/ConsoleApplicationBase/ConsoleApplicationBase/CommandLibrary.cs # src/consoleApp/ConsoleApplicationBase/ConsoleApplicationBase/Commands/DefaultCommands.cs # src/consoleApp/ConsoleApplicationBase/ConsoleApplicationBase/ConsoleApplicationBase.csproj # src/consoleApp/ConsoleApplicationBase/ConsoleApplicationBase/Program.cs
…base # Conflicts: # ConsoleApplicationBase.sln # ConsoleApplicationBase/App.config # ConsoleApplicationBase/Commands/DefaultCommands.cs # ConsoleApplicationBase/ConsoleApplicationBase.csproj # ConsoleApplicationBase/Program.cs
Contributor
|
Cool! I can't pull it down and play with it right now, but what I'll probably do it pull it into a separate branch, and put a link to the branch with a description in the comments. That way the original will remain in sync with the blog article, but people can easily find the cool stuff you've done with it. |
Author
|
Thanks for appreciating my work. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hi,
I read your blog post about a "Useful, Extensible .NET Console Application" and I liked the idea of having such a thing when working on my master thesis.
I've just started programming in C# and wanted a REPL like environment. But I wanted to have the possibility to load external Assemblies with a DefaultCommand or via the App.config file. I refactored a few things to make that work. I also includes a library project that, after being built, is loaded into the Console Application via App.config file.
Regards, Ronny